Import( '*' )

# Hack, bang, bang. Could be prettier in a lot of places.

import distutils.sysconfig

env.Append( CPPPATH = [ distutils.sysconfig.get_python_inc() ]  
            )

proxy_source = [ 
    "run_proxy.cc", 
    "Socket.cc",
    "proxy_wrap.cxx",
    ]

lib = env.SharedLibrary( target = "_libproxy.so",
                         SHLIBPREFIX="",
                         source = proxy_source,
)

env.Command( target="proxy_wrap.cxx",
             source="proxy.i",
             action="swig -c++ -python -classic $SOURCE",
             )
             
